<template>
  <div class="header"
       @mouseover="mouseOver"
       @mouseleave="mouseLeave">
    <div class="header-main">
      <a href="javascript:void(0);"
         class="img">
        <img src="//game.gtimg.cn/images/yxzj/web201706/images/comm/logo.png"
             alt />
      </a>
      <ul class="main-nav">
        <li>
          <router-link to="/home">
            官方网页454546545
            <span>HOME</span>
          </router-link>
        </li>
        <li>
          <router-link to="/gamedata">
            游戏资料
            <span>DATA</span>
          </router-link>
        </li>
        <li>
          <router-link to="/content">
            内容中心
            <span>CONTENTS</span>
          </router-link>
        </li>
        <li>
          <router-link to="/match">
            赛事中心
            <span>MATCH</span>
          </router-link>
        </li>
        <li>
          <a target="blank" href="http://localhost:8080/#/baitai">
            百态王者
            <span>CULTURE</span>
          </a>
        </li>
        <li>
          <a href="javascript:void(0);">
            社区互动
            <span>COMMUNITY</span>
          </a>
        </li>
        <li>
          <a href="javascript:void(0);">
            玩家支持
            <span>PLAYER</span>
          </a>
        </li>
      </ul>
      <div class="login">
        <a href="javascript:void(0);">
          <img src=""
               alt />
        </a>
        <div class="unlogin">
          <p class="p1">欢迎登陆</p>
          <p class="p2">登陆后查看游戏战绩</p>
        </div>
      </div>
    </div>
    <div class="sub-nav"
         v-show="show1">
      <ul class="sub-inner">
        <li down-nav
            class="firstLi">&nbsp;</li>
        <li down-nav>&nbsp;</li>
        <li down-nav>
          <a href="javascript:void(0);">版本介绍</a>
          <a href="javascript:void(0);">游戏介绍</a>
          <a href="javascript:void(0);">英雄资料</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>爆料站</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>故事站</a>
          <a href="javascript:void(0);">游戏壁纸</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>模拟战资料库</a>
        </li>
        <li down-nav>
          <a href="javascript:void(0);">攻略中心</a>
          <a href="javascript:void(0);">英雄攻略</a>
          <a href="javascript:void(0);">视频中心</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>开放素材库</a>
          <a href="javascript:void(0);">王者视角</a>
          <a href="javascript:void(0);">作者入驻</a>
          <a href="javascript:void(0);">媒体入驻</a>
        </li>
        <li down-nav>
          <a href="javascript:void(0);">冬季冠军杯</a>
          <a href="javascript:void(0);">KPL</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>模拟战冬冠</a>
          <a href="javascript:void(0);">KRKPL</a>
          <a href="javascript:void(0);">高校赛</a>
          <a href="javascript:void(0);">城市赛</a>
          <a href="javascript:void(0);">全民赛</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>赛事数据</a>
        </li>
        <li down-nav>
          <a href="javascript:void(0);">荣耀·传承</a>
          <a href="javascript:void(0);">王者文化站</a>
          <a href="javascript:void(0);">王者音乐听</a>
          <a href="javascript:void(0);">万千世界</a>
          <a href="javascript:void(0);">星光殿堂</a>
          <a href="javascript:void(0);">商户特权</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>无限王者团</a>
        </li>
        <li down-nav>
          <a href="javascript:void(0);"><i class="icon-fans"></i>创意互动营</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>王者营地</a>
          <a href="javascript:void(0);">手Q部落</a>
          <a href="javascript:void(0);">微信圈子</a>
          <a href="javascript:void(0);">官方微博</a>
          <a href="javascript:void(0);">微信公众号</a>
          <a href="javascript:void(0);">手Q订阅号</a>
          <a href="javascript:void(0);">同人社区</a>
        </li>
        <li down-nav>
          <a href="javascript:void(0);">成长守护平台</a>
          <a href="javascript:void(0);">健康系统</a>
          <a href="javascript:void(0);"><i class="icon-fans"></i>对局环境情报站</a>
          <a href="javascript:void(0);">客服专区</a>
          <a href="javascript:void(0);">礼包兑换</a>
          <a href="javascript:void(0);">自助服务</a>
        </li>
      </ul>

    </div>
  </div>
</template>
<script>
export default {
  data: () => ({
    activeIndex: '1',
    activeIndex2: '1',
    show1: false
  }),
  created () { },
  methods: {
    handleSelect (key, keyPath) {
      console.log(key, keyPath)
    },
    mouseOver () {
      this.show1 = true
    },
    mouseLeave () {
      this.show1 = false
    }
  }
}
</script>
<style lang="less" scoped>
* {
  margin: 0;
}
a {
  text-decoration: none;
}
li {
  list-style: none;
}
.header {
  width: 100%;
  min-width: 1280px;
  height: 84px;
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  z-index: 88;
  .sub-nav {
    position: absolute;
    top: 83px;
    left: 0;
    width: 100%;
    height: 285px;
    background: rgba(0, 0, 0, 0.7);
    .sub-inner {
      transition: all 0.3s ease;
      width: 970px;
      height: 240px;
      margin: 0 auto;
      li {
        float: left;
        width: 100px;
        padding: 2px 5px 0;
        text-align: center;
        white-space: nowrap;
        a:hover {
          color: #e4b653;
        }
        a {
          height: 30px;
          line-height: 30px;
          display: block;
          padding: 0;
          font-size: 14px;
          color: #c9c9dd;
          .icon-fans {
            overflow: hidden;
            display: inline-block;
            width: 24px;
            height: 24px;
            vertical-align: middle;
            background-image: url(//game.gtimg.cn/images/yxzj/web201706/images/comm/index.png);
            background-position: -137px 533px;
          }
        }
      }
    }
  }
  .header-main {
    width: 1200px;
    margin: 0 auto;
    .main-nav {
      width: 790px;
      display: inline-block;
      opacity: 0.8;
      height: 84px;
      border-bottom: none;
      li {
        box-sizing: border-box;
        color: #c9c9dd;
        float: left;
        width: 110px;
        height: 84px;
        text-align: center;
        padding: 20px 0 0;
        cursor: pointer;
        a {
          color: #c9c9dd;
        }
        span {
          display: block;
          padding-top: 5px;
          transform: scale(0.95);
          // -o-transform: scale(0.95);
          font-size: 12px;
          line-height: 16px;
          color: #858792;
        }
      }
      li:hover {
        background: url('//game.gtimg.cn/images/yxzj/web201706/images/comm/index.png') no-repeat;
      }
      li:hover a {
        color: #e4b653;
      }
      li:hover span {
        color: #e4b653;
      }
    }
    .login {
      position: relative;
      right: 0px;
      top: -30px;
      width: 170px;
      display: inline-block;

      .p1 {
        color: #ffffff;
        font-size: 16px;
      }
      .p2 {
        font: 12px/1.5 'Microsoft YaHei', Tahoma, 'simsun', sans-serif;
        color: #858792;
      }
      a {
        float: left;
        margin-right: 7px;
      }
      img {
        border: 1px solid #d9ad50;
        border-radius: 42px;
      }
    }
    .img {
      position: relative;
      left: 0;
      top: -16px;
      z-index: 100;
      width: 200px;
      height: 54px;
    }
  }
}
</style>
